package com.xmcowell.sportpacemaster.utils.retrofit;

public class APIFactory extends RetrofitHttpUtil {

    public static APIFactory getInstance() {
        return SingletonHolder.INSTANCE;
    }

    private static class SingletonHolder {
        private static final APIFactory INSTANCE = new APIFactory();
    }

//    public void client(Subscriber<UserInfo> subscriber, HashMap<String,String> param) {
//        Observable observable = apiService.client(param)
//                .map(new HttpResultFunc<UserInfo>());
//        toSubscribe(observable, subscriber);
//    }

//    public void sport(Subscriber<ListMode<TrainShedule>> subscriber, HashMap<String,String> param) {
//        Observable observable = apiService.sportTrainShedule(param)
//                .map(new HttpResultFunc<ListMode<TrainShedule>>());
//        toSubscribe(observable, subscriber);
//    }

//    public void sportCoach(Subscriber<ListMode<Coach>> subscriber, HashMap<String,String> param) {
//        Observable observable = apiService.sportCoach(param)
//                .map(new HttpResultFunc<ListMode<Coach>>());
//        toSubscribe(observable, subscriber);
//    }

//    public void sportMyCoach(Subscriber<ArrayList<MyCoach>> subscriber, HashMap<String,String> param) {
//        Observable observable = apiService.sportMyCoach(param)
//                .map(new HttpResultFunc<ArrayList<MyCoach>>());
//        toSubscribe(observable, subscriber);
//    }

}